CREATE EXTERNAL TABLE IF NOT EXISTS spmi_ods.spmi_share_network_relation(
id                                                 bigint                         COMMENT '主键ID',
share_dept_id                                      bigint                         COMMENT '分摊机构ID',
destination_id                                     bigint                         COMMENT '网点ID',
destination_name                                   String                         COMMENT '网点名称',
destination_code                                   String                         COMMENT '网点编码',
dept_level                                         String                         COMMENT '机构级别'
)
COMMENT '分摊机构网点关系表'
PARTITIONED BY (dt STRING COMMENT '更新/创建日期 (yyyy-MM-dd)')
STORED AS PARQUET
LOCATION '/dw/hive/spmi_ods.db/external/spmi_share_network_relation'
TBLPROPERTIES (
  'parquet.column.index.access'='true'
);